package com.veo.entity;


import java.text.SimpleDateFormat;
import java.util.Date;

public class BorrowBooks {
    private String isbn;
    private String bookName;
    private String author;
    private String type;
    private String press;
    private String idCard;
    private String username;
    private String borrowTime;

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getBorrowTime() {
        return borrowTime;
    }

    public void setBorrowTime(Date borrowTime) {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.borrowTime = formatter.format(borrowTime);
    }

    @Override
    public String toString() {
        return "BorrowBooks{" +
                "isbn='" + isbn + '\'' +
                ", bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", type='" + type + '\'' +
                ", press='" + press + '\'' +
                ", idCard='" + idCard + '\'' +
                ", username='" + username + '\'' +
                ", borrowTime='" + borrowTime + '\'' +
                '}';
    }
}
